
const demo = require("../../src/demo/demoService");
module.exports = {
  path: "/demo",
  name: "demo模块",
  children: [
    {
      path: "/add",
      name: "添加",
      service: demo["add"],
      params: {
        name: "demo"
      }
    },
    //  {
    //    path: "/list",
    //    name: "列表",
    //    service: demo["list"],
    //    params: {
    //      currPage: "当前页",
    //      pageSize: "每页条数",
    //    }
    //  },
     {
       path: "/find",
       name: "列表",
       service: demo["find"],
       params: {
         
       }
     },
     {
       path: "/list",
       name: "列表",
       service: demo["all"], 
     },
       {
       path: "/detail",
       name: "详情",
       service: demo["detail"],
       params: {
         demoId: "demoId"
       }
     },
     {
       path: "/edit",
       name: "修改",
       service: demo["edit"],
       params: {
         demoId: "demoId"
       }
     },
     {
       path: "/del",
       name: "删除",
       service: demo["del"],
       params: {
         demoId: "demoId"
       }
     }
  ]
};
